<?php
//--------------------------------------------------
// Patch file:	patch_acp_calendar.php
// Patch time:	Tue 02 May 2006, 16:29 (GMT)
//--------------------------------------------------
if ( !defined('IN_PHPBB') )
{
	die('Hack attempt');
}

// header
$patch_version = '1.0.6';
$patch_date = '20060502';
$patch_author = 'Ptirhiik';
$patch_ref = 'Calendar_settings';

// panels and fields
$patch_data = array(
	'acp' => array(
		'name' => 'Admin_control_panel',
		'options' => array(

			'config' => array(
				'name' => 'Configuration',
				'options' => array(

					'calendar' => array(
						'name' => 'Calendar_settings',
						'auth' => array(POST_PANELS_URL => 'access'),
						'fields' => array(
							'calendar_week_start' => array('type' => 'list', 'legend' => 'Calendar_week_start', 'value' => '1', 'field' => 'calendar_week_start', 'options' => '[var]calendar_days_of_week'),
							'calendar_week_start_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_week_start_over', 'linefeed' => '1'),
							'calendar_header_cells' => array('type' => 'int', 'legend' => 'Calendar_header_cells', 'value' => '7', 'field' => 'calendar_header_cells'),
							'calendar_header_cells_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_header_cells_over', 'linefeed' => '1'),
							'calendar_display_open' => array('type' => 'radio_list', 'legend' => 'Calendar_display_open', 'field' => 'calendar_display_open', 'options' => '[var]list_no_yes'),
							'calendar_display_open_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_display_open_over', 'linefeed' => '1'),
							'calendar_use_java' => array('type' => 'radio_list', 'legend' => 'Calendar_use_java', 'value' => '1', 'field' => 'calendar_use_java', 'options' => '[var]list_no_yes'),
							'calendar_user_java_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_user_java_over', 'linefeed' => '1'),
							'calendar_overview' => array('type' => 'radio_list', 'legend' => 'Calendar_overview', 'field' => 'calendar_overview', 'options' => '[var]list_no_yes'),
							'calendar_overview_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_overview_over', 'linefeed' => '1'),
							'calendar_title_length' => array('type' => 'int', 'legend' => 'Calendar_title_length', 'value' => '30', 'field' => 'calendar_title_length'),
							'calendar_title_length_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_title_length_over', 'linefeed' => '1'),
							'calendar_text_length' => array('type' => 'int', 'legend' => 'Calendar_text_length', 'value' => '200', 'field' => 'calendar_text_length'),
							'calendar_text_length_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_text_length_over', 'linefeed' => '1'),
							'calendar_nb_row' => array('type' => 'int', 'legend' => 'Calendar_nb_row', 'value' => '5', 'field' => 'calendar_nb_row', 'value_mini' => '5', 'value_maxi' => '25'),
							'calendar_nb_row_over' => array('type' => 'radio_list_comment', 'legend' => 'Override_user_choice', 'options' => '[var]list_no_yes', 'field' => 'calendar_nb_row_over', 'linefeed' => '1'),
						),
					),
				),
			),
		),
	),
);


// auths definitions
$patch_auths = array(
	POST_FORUM_URL => array(
		'auth_calendar' => array(),
	),
	POST_PANELS_URL => array(
		'auth_manage' => array(),
		'access' => array(
			GROUP_ADMIN => array('acp.config.calendar' => true),
		),
	),
);


?>